﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/Administration.Master" AutoEventWireup="true" CodeFile="ForgotPass.aspx.cs" Inherits="SaleOffVn.Web.Administration.ForgotPass" Title="InfoNam - Forgot Password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CenterContentPlaceHolder" Runat="Server">
    <h1>Forgot Password</h1>
    <br/>
    <asp:PasswordRecovery ID="PasswordRecovery1" runat="server"
        BorderPadding="4" 
        CssClass="forgot-pass"
        onsendingmail="PasswordRecovery1_SendingMail" >
            <MailDefinition BodyFileName="~/App_Data/templateForgotPass.txt" IsBodyHtml="false" Subject="Forgot your password" Priority="High"></MailDefinition>                                      
            <UserNameTemplate>
                <span style="text-align:center;">
                    UserName: 
                    <asp:TextBox ID="UserName" runat="server" Width="236px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                        ErrorMessage="Username is required" ToolTip="Username is required." Display="None">
                    </asp:RequiredFieldValidator>                                               
                    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="validatorCalloutHighlight" TargetControlID="UserNameRequired">
                    </ajaxToolkit:ValidatorCalloutExtender>
                    &nbsp;
                    <asp:Button ID="SubmitButton" runat="server" Text="Send" CommandName="Submit" /><br /><br />
                    <span  class="message-error">
                        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                    </span>                        
                </span>                   
            </UserNameTemplate>            
            <SuccessTemplate>
                Your password has been sent to your email address                
            </SuccessTemplate>                            
    </asp:PasswordRecovery>    
</asp:Content>

